'use strict';

const addRules = {
  question_id: {
    type: 'int',
    required: true,
  },
  title: {
    type: 'string',
    required: true,
  },
  content: {
    type: 'string',
    required: true, 
  }
};
const hideRules = {
  id: {
    type: 'int',
    required: true,
  }
};
const updateRules = {
  ...hideRules,
  content: {
    type: 'string',
    required: true, 
  }
};
module.exports = {
  addRules,
  hideRules,
  updateRules
};
